package lambda;

/**
 * @ProjectName: sky-take-out
 * @Titile: testC
 * @Author: 霍静
 * @Description: TODO
 */
public class testC {
    public static void main(String[] args) {
        C c = new C() {
            @Override
            public String show(String name) {
                return name;
            }
        };
        System.out.println(c.show("白敬亭"));

        //Lambda表达式
        C c1 = name -> name;
        String result = c1.show("马龙你好");
        System.out.println(result);
    }
}
